package org.mspring.mlog;

import org.mspring.mlog.config.MvcConfig;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication(exclude = {SecurityAutoConfiguration.class})
@ImportResource({"classpath:applicationContext.xml"})
public class MlogApplication {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(new Object[]{MlogApplication.class, MvcConfig.class});
        app.setBannerMode(Banner.Mode.CONSOLE);
        app.run(args);
    }
}
